package com.ctgu.ImageRecognition.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;
import java.io.Serializable;

/**
 * (Photo)实体类
 *
 * @author 
 * @since 2023-07-05 18:31:01
 */
public class Photo implements Serializable {
    private static final long serialVersionUID = -83238066264908112L;
    @TableId(type = IdType.AUTO)
    @JsonProperty(value = "pId")
    private Integer pId;
    @JsonProperty(value = "uId")
    private Integer uId;
    @JsonProperty(value = "aId")
    private Integer aId;
    
    private Date photoUploaded;
    
    private Boolean isCollection;
    @JsonProperty(value = "filePath")
    private String filePath;
    @JsonProperty(value = "pName")
    private String pName;



    public Photo(Integer pId, Integer uId, Integer aId, Date photoUploaded, Boolean isCollection, String filePath, String pName) {
        this.pId = pId;
        this.uId = uId;
        this.aId = aId;
        this.photoUploaded = photoUploaded;
        this.isCollection = isCollection;
        this.filePath = filePath;
        this.pName = pName;
    }

    public Photo() {
    }


    public Integer getPId() {
        return pId;
    }

    public void setPId(Integer pId) {
        this.pId = pId;
    }

    public Integer getUId() {
        return uId;
    }

    public void setUId(Integer uId) {
        this.uId = uId;
    }

    public Integer getAId() {
        return aId;
    }

    public void setAId(Integer aId) {
        this.aId = aId;
    }

    public Date getPhotoUploaded() {
        return photoUploaded;
    }

    public void setPhotoUploaded(Date photoUploaded) {
        this.photoUploaded = photoUploaded;
    }

    public Boolean getIsCollection() {
        return isCollection;
    }

    public void setIsCollection(Boolean collection) {
        isCollection = collection;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getPName() {
        return pName;
    }

    public void setPName(String pName) {
        this.pName = pName;
    }

    @Override
    public String toString() {
        return "Photo{" +
                "pId=" + pId +
                ", uId=" + uId +
                ", aId=" + aId +
                ", photoUploaded=" + photoUploaded +
                ", isCollection=" + isCollection +
                ", filePath='" + filePath + '\'' +
                ", pName='" + pName + '\'' +
                '}';
    }
}

